package bill

import (
	"encoding/xml"

	"github.com/bububa/opentaobao/model"
)

// TaobaoTaeAccountsGetAPIResponse tae查询费用科目信息 API返回值
// taobao.tae.accounts.get
//
// tae查询费用科目信息
type TaobaoTaeAccountsGetAPIResponse struct {
	model.CommonResponse
	TaobaoTaeAccountsGetAPIResponseModel
}

// TaobaoTaeAccountsGetAPIResponseModel is tae查询费用科目信息 成功返回结果
type TaobaoTaeAccountsGetAPIResponseModel struct {
	XMLName xml.Name `xml:"tae_accounts_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回的科目信息
	Accounts []TopAccountDto `json:"accounts,omitempty" xml:"accounts>top_account_dto,omitempty"`
	// 返回记录行数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}
